class Cell {
    // 行
    row
    // 列
    col
    // html元素
    dom
    // x偏移
    x
    // y偏移
    y
    width
    height
    // 值
    value
    // 输入框
    input
    rowSpan = 1
    colSpan = 1
    // 是否标记删除
    dr = 0

    constructor(obj) {
        this.row = obj.row
        this.col = obj.col
        this.dom = obj.dom
        this.x = obj.x
        this.y = obj.y
        this.width = obj.width
        this.height = obj.height
        this.value = obj.value
        this.input = obj.input
        this.rowSpan = obj.rowSpan || this.rowSpan
        this.colSpan = obj.colSpan || this.colSpan
        this.dr = obj.dr || this.dr
    }
}


export default Cell;